Skip to content

[DirectX][ObjectYAML] Add PRIV part support#174

Merged
dzhidzhoev merged 1 commit into
dx-debugfrom
dzhidzhoev/obj2yaml/dx/priv/base
Jun 19, 2026
Merged

[DirectX][ObjectYAML] Add PRIV part support#174
dzhidzhoev merged 1 commit into
dx-debugfrom
dzhidzhoev/obj2yaml/dx/priv/base

Conversation

@dzhidzhoev

Copy link
Copy Markdown
Contributor

Add support for DXContainer PRIV in the ObjectYAML pipeline so it can be represented in structured YAML and round-tripped through yaml2obj/obj2yaml.

PRIV part can store arbitrary user-provided binary blobs in DXContainer. Unlike other DXContainer parts, PRIV part does not have to be 4-byte aligned. Therefore, if it is present, it is always the last section in a DXContainer.

llvm-objcopy is already able to extract PRIV section. A test to verify extraction of binary from PRIV is added.

Add support for DXContainer PRIV in the ObjectYAML pipeline so it can be
represented in structured YAML and round-tripped through
yaml2obj/obj2yaml.

PRIV part can store arbitrary user-provided binary blobs in DXContainer.
Unlike other DXContainer parts, PRIV part does not have to be 4-byte
aligned. Therefore, if it is present, it is always the last section
in a DXContainer.

llvm-objcopy is already able to extract PRIV section. A test to verify
extraction of binary from PRIV is added.
@dzhidzhoev dzhidzhoev requested review from Copilot and kuilpd and removed request for Copilot June 17, 2026 15:19
@dzhidzhoev dzhidzhoev merged commit 1cdbcce into dx-debug Jun 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants